//
//  JSBaseCollectionViewController.h
//  NiubilityProject
//
//  Created by Apple on 2018/3/16.
//  Copyright © 2018年 Apple. All rights reserved.
//  CollectionView 常用属性及方法: http://blog.csdn.net/lvxiangan/article/details/73826108

#import "JSBaseViewController.h"
#import "UIScrollView+EmptyDataSet.h"

@interface JSBaseCollectionViewController : JSBaseViewController <UICollectionViewDelegate,UICollectionViewDataSource,DZNEmptyDataSetSource,DZNEmptyDataSetDelegate,UICollectionViewDelegateFlowLayout>

@property (nonatomic, strong) UICollectionView *collectionView;

/** 数据源*/
@property (nonatomic, strong) NSMutableArray *dataSource;
@property (nonatomic, strong, readonly) UICollectionViewLayout *curLayout;
/** 请求到数据回调 */
@property (nonatomic, copy) JSDataCallBack requestDataHandle;
/**隐藏头部刷新*/
@property (nonatomic, assign)   BOOL isHidenHeaderRefresh;
/**隐藏脚部加载更多*/
@property (nonatomic, assign)   BOOL isHidenFooterRefresh;
-(instancetype) initWithLayout:(UICollectionViewLayout *) layout;
/** 下拉刷新 需要子类主动调用*/
-(void)headerRefresh;
/**
 *  子类重写加载数据方法
 *  重写后需要自己管理请求参数和数据回调
 */
//-(void)loadData:(BOOL)isNewData;
/**
 * 上拉加载判断
 */
-(void)footerRefreshType;
-(void)layoutSubView;
-(BOOL)isShowLoigngView;

@end
